<template>
  <n-result
    status="404"
    title="404 资源不存在"
    description="生活总归带点荒谬"
    size="huge"
  >
    <template #footer>
      <n-button disabled size="large" type="error">找点乐子吧</n-button>
      <n-button size="large" type="success" @click="backToHome">回到Home页</n-button>
    </template>
  </n-result>
</template>

<script setup>
  import {useRouter} from 'vue-router';

  const router = useRouter();
  const backToHome = ()=>{
    router.push({path:'/home'})
  }
</script> 

<style scoped>
</style>